<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>zuiretiezi.html</title>
    <link rel="stylesheet" href="../../css/postlist/zuiretiezi.css">
    <script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
    <script type="text/javascript" src="../js/postlist/zuixinfabiao.js"></script>

</head>

<body>
<div id="content">

        <form th:action="@{zuiretiezi}" method="GET">
<!--            <img th:src="search.jpg">-->
            <input type="text"    placeholder="根据标题或主题查询"
                   id="ss" name="ptitle" value=""
                   style="border: 1px solid black;;height:28px;width:150px;">

            <input  type="submit" value="搜索" onclick="ff()" >

        </form>


        <table id="adminTbody" class="table" th:width="1200">
            <thead>
            <tr class="table_header">
                <th th:style="'display:none'">帖子ID</th>
                <th th:style="'display:none'">帖子状态</th>
                <th>标题</th>
                <th>类型</th>
                <th>作者</th>
                <th>点赞</th>
                <th>收藏</th>
                <th>发表时间</th>
            </tr>
            </thead>
            <tbody>
            <tr th:each="zmpost,zmpostStat : ${zmposts}" class="tbody" onmouseover="this.style.backgroundColor='lightslategray';" onmouseout="this.style.backgroundColor='#FFFFFF';">
    <!--            onmouseover="this.style.backgroundColor='lightslategray';" onmouseout="this.style.backgroundColor='write';"-->
                <td th:text="${zmpost.pid}" th:style="'display:none'"></td>
                <td th:text="${zmpost.pstatus}" th:style="'display:none'"></td>
                <td><a th:href="@{'http://localhost:8080/html/editor/viewPost.do?pid=' + ${zmpost.pid}}" target="main" th:text="${zmpost.ptitle}" style="color: black;text-decoration: none;"></a></td>
                <td th:text="${zmpost.ptype}"></td>
                <td th:text="${zmpost.username}"></td>
                <td th:text="${zmpost.giveup}"></td>
                <td th:text="${zmpost.collect}"></td>
                <td th:text="${zmpost.ptime}"></td>
            </tr>
            </tbody>
        </table>
        <div class="layui-card-body ">
            <div class="page">
                <div id="page">
                    <a class="num" href="###" id="firstPage">首页</a>
                    <a class="prev" href="###" id="prePage">上一页</a>
                    <span class="current" id="currentPage"></span>
                    <a class="next" href="###"id="nextPage">下一页</a>
                    <a class="num" href="###" id="lastPage">尾页</a>
                    <a class="num" href="###" id="totalpage"></a>
                    <a class="num"> <select  id="jumpWhere"> </select></a>
                    <a href="###" id="jumpPage" onclick="jumpPage()">跳转</a>
                    <a class="num" id="countsum"></a>
                </div>
            </div>
        </div>
</div>


</body>


</html>